// 管理mock数据
export default {
    loginData: () => ({ // 登录接口返回的数据
        code: 1,
        msg: "登录成功",
        data: {
            token: '710260712',
            student_id: '710260712'
        }
    }),
    registerData: () => ({ // 登录接口返回的数据
        code: 1,
        msg: "注册成功",
        data: {
            flag:true
        }
    }),
    studentInfo: () => ({ // 登陆的用户信息
        code: 1,
        msg: "获取信息成功",
        data: {
            stuID:'710260712',
            name:'秦韩',
            account:'710260712account',
            alias:'Tonited',
            stuNumber:'1806210424',
            cls:'四班',
            grade:'2017',
            phoNumber:'18888888888',
            eMail:'test@test.com',
            school:'电子科技大学',
            college:'信息与软件工程学院',
            major:'软件工程'
        }
    }),
    changePasswdData:()=>({
        code: 1,
        msg:"密码修改成功",
        data:{
            flag:true
        }
    }),
    changeStudentInfoData:()=>({
        code: 1,
        msg:"学生信息修改成功",
        data:{
            flag:true
        }
    }),
    afterChangeStudentInfo: () => ({ // 修改学生信息之后返回的信息
        code: 1,
        msg: "获取信息成功",
        data: {
            stuID:'710260712',
            name:'林枫',
            account:'710260712account',
            alias:'林枫',
            stuNumber:'1806210424',
            cls:'四班',
            grade:'2017',
            phoNumber:'18888888888',
            eMail:'test@test.com',
            school:'湖南科技大学',
            college:'信息与软件工程学院',
            major:'软件工程'
        }
    }),
    recordList:()=>({ // 获取记录
        code:1,
        msg:'记录获取成功',
        data:{
            recordList:[
                {
                    key: 1,
                    queRecId:'1',
                    stuId:'710260712',
                    quenID:'123456',
                    queRecType:2,
                    queContext:'easy已知振芊是个傻子，问赵振芊今年有几根腿毛',
                    level:1,
                    time:'12:23:23'
                },
                {
                    key: 2,
                    queRecId:'2',
                    stuId:'710260712',
                    quenID:'123456',
                    queRecType:2,
                    queContext:'normal已知振芊是个傻子，问赵振芊今年有几根腿毛',
                    level:2,
                    time:'12:23:23'
                },{
                    key: 3,
                    queRecId:'3',
                    stuId:'710260712',
                    quenID:'123456',
                    queRecType:2,
                    queContext:'hard已知振芊是个傻子，问赵振芊今年有几根腿毛',
                    level:3,
                    time:'12:23:23'
                },{
                    key: 4,
                    queRecId:'4',
                    stuId:'710260712',
                    quenID:'123456',
                    queRecType:2,
                    queContext:'easy已知振芊是个傻子，问赵振芊今年有几根腿毛',
                    level:1,
                    time:'12:23:23'
                },
                {
                    key: 5,
                    queRecId:'5',
                    stuId:'710260712',
                    quenID:'123456',
                    queRecType:2,
                    queContext:'normal已知振芊是个傻子，问赵振芊今年有几根腿毛',
                    level:2,
                    time:'12:23:23'
                },{
                    key: 6,
                    queRecId:'6',
                    stuId:'710260712',
                    quenID:'123456',
                    queRecType:2,
                    queContext:'hard已知振芊是个傻子，问赵振芊今年有几根腿毛',
                    level:3,
                    time:'12:23:23'
                },
                {
                    key: 7,
                    queRecId:'7',
                    stuId:'710260712',
                    quenID:'123456',
                    queRecType:2,
                    queContext:'normal已知振芊是个傻子，问赵振芊今年有几根腿毛',
                    level:2,
                    time:'12:23:23'
                },{
                    key: 8,
                    queRecId:'8',
                    stuId:'710260712',
                    quenID:'123456',
                    queRecType:2,
                    queContext:'hard已知振芊是个傻子，问赵振芊今年有几根腿毛',
                    level:3,
                    time:'12:23:23'
                }
            ],
            totalPage:5
        },
    }),
    deleteRecordData:()=>({
        code:1,
        msg:'删除成功',
        data:{
            flag : true
        }
    }),
    //获取题目类型
    queTypeListData:()=>({
        code:1,
        msg:'获取题目类型成功',
        data:{
            queTypeList:[
                {
                    id:'123',
                    name:'选择题'
                },{
                    id:'234',
                    name: '填空题'
                },{
                    id:'345',
                    name: '简答题'
                }
            ]
        }
    }),
    //获取学院列表
    collageList:()=>({
        code:1,
        msg:'获取学院成功',
        data:[
            {
                colId:1,
                name:'计算机科学与工程学院'
            },{
                colId:2,
                name:'土木工程学院'
            }, {
                colId:3,
                name:'资源环境与安全工程'
            }
        ]
    }),
    //获取专业
    majorList:()=>({
        code:1,
        msg:'获取专业成功',
        data:[
            {
                majorId:1,
                name:'计科1'
            },{
                majorId:2,
                name:'计科2'
            }, {
                majorId:3,
                name:'计科3'
            }
        ]
    }),
    //获取专业班级
    classList:()=>({
        code:1,
        msg:'获取专业班级成功',
        data:[
            {
                classId:1,
                name:'计科1班'
            },{
                classId:2,
                name:'计科2班'
            }, {
                classId:3,
                name:'计科3班'
            }
        ]
    }),
    //获取课程
    courseList:()=>({
        code:1,
        msg:'获取课程列表成功',
        data:[{
                couId:"123",
                name:'操作系统',
                counumber:'123'
            },{
                couId:"234",
                name:'计算机组成原理',
                counumber:'234'
            },{
                couId:"345",
                name:'数据结构',
                counumber:'345'
            }
        ]
    }),
    //获取章节
    capList:()=>({
        code:1,
        msg:'章节获取成功',
        data:[
            {
                chaId:'123',
                name:'什么是软件工程',
                capter:'1',
                queTypeCount:null,
                first:0,
                second:0,
                third:0
            },{
                chaId:'234',
                name:'UML图',
                capter:'1',
                queTypeCount:null,
                first:1,
                second:0,
                third:0
            },{
                chaId:'345',
                name:'敏捷开发',
                capter:'1',
                queTypeCount:[{
                    id:'123',
                    count:43
                },{
                    id:'234',
                    count: 23,
                },{
                    id:'345',
                    count: 12
                }],
                first:1,
                second:2,
                third:0
            },{
                chaId:'456',
                name:'协同开发',
                capter:'1',
                queTypeCount:[{
                    id:'123',
                    count:43
                },{
                    id:'234',
                    count: 0,
                },{
                    id:'345',
                    count: 12
                }],
                first:2,
                second:0,
                third:0
            }
        ]
    }),
    //获取试卷
    paperData:()=>({
       code:1,
       msg:'试卷生成成功',
       data:[
           {
               queId:'123',
               type:'123',//选择
               level: 1,
               content:'已知振芊快要三十了，问振芊为什么还没有女朋友？是人性的扭曲还是道德的沦丧？',
               analysis:'虽然振芊三十了，但是丑是天授的，人很难更改，所以他找不到女朋友',
               point:'振芊长得丑',
               answer:[
                   {
                       content:'丑',
                       right:true
                   },{
                       content:'老',
                       right:true
                   },{
                        content:'帅',
                       right:false
                   }
               ]
           },{
               queId:'234',
               type:'234',//填空
               level: 2,
               content:'已知振芊快要三十了，问振芊为什么还没有女朋友？是人性的扭曲还是道德的沦丧？',
               analysis:'虽然振芊三十了，但是丑是天授的，人很难更改，所以他找不到女朋友',
               point:'振芊长得丑',
               answer:[
                   {
                       content:'丑',
                       right:true
                   }, {
                       content:'老',
                       right:true
                   }
               ]
           },{
               queId:'345',
               type:'345',//简答
               level: 3,
               content:'已知振芊快要三十了，问振芊为什么还没有女朋友？是人性的扭曲还是道德的沦丧？',
               analysis:'虽然振芊三十了，但是丑是天授的，人很难更改，所以他找不到女朋友',
               point:'振芊长得丑',
               answer:[
                   {
                       content:'丑',
                       right:true
                   }
               ]
           },{
               queId:'456',
               type:'123',//选择
               level: 1,
               content:'已知振芊快要三十了，问振芊为什么还没有女朋友？是人性的扭曲还是道德的沦丧？',
               analysis:'虽然振芊三十了，但是丑是天授的，人很难更改，所以他找不到女朋友',
               point:'振芊长得丑',
               answer:[
                   {
                       content:'丑',
                       right:true
                   },{
                       content:'老',
                       right:true
                   },{
                       content:'帅',
                       right:false
                   }
               ]
           },{
               queId:'567',
               type:'234',//填空
               level: 2,
               content:'已知振芊快要三十了，问振芊为什么还没有女朋友？是人性的扭曲还是道德的沦丧？',
               analysis:'虽然振芊三十了，但是丑是天授的，人很难更改，所以他找不到女朋友',
               point:'振芊长得丑',
               answer:[
                   {
                       content:'丑',
                       right:true
                   }, {
                       content:'老',
                       right:true
                   }
               ]
           },{
               queId:'678',
               type:'345',//简答
               level: 3,
               content:'已知振芊快要三十了，问振芊为什么还没有女朋友？是人性的扭曲还是道德的沦丧？',
               analysis:'虽然振芊三十了，但是丑是天授的，人很难更改，所以他找不到女朋友',
               point:'振芊长得丑',
               answer:[
                   {
                       content:'丑',
                       right:true
                   }
               ]
           },
       ]
    }),
    //添加记录
    addRecord:()=>({
        code:1,
        msg:'添加成功',
        data:{
            flag : true
        }
    }),

    questionInfo:()=>({
        code:1,
        msg:"获取成功",
        data:{
            question:{
                queId:'123',
                type:'123',//选择
                level: 1,
                content:'已知振芊快要三十了，问振芊为什么还没有女朋友？是人性的扭曲还是道德的沦丧？',
                analysis:'虽然振芊三十了，但是丑是天授的，人很难更改，所以他找不到女朋友',
                point:'振芊长得丑',
                answer:[
                    {
                        content:'丑',
                        right:true
                    },{
                        content:'老',
                        right:true
                    },{
                        content:'帅',
                        right:false
                    }
                ]
            }
        }
    }),

//排名数据
   rankList:()=>({ // 获取排名
       code:1,
       msg:'记录获取成功',
       data:{
           rankList:[
               {

                   stuID:'710260712',
                   name:'710260712',
                   grade:'18级',
                   questionNum:'999',
                   accuracy:'99%',
                   collageId:'1',
                   majorId:'1',
                   classId:'1',

               },
               {

                   
                   stuID:'123',
                   name:'710260712',
                   grade:'18级',
                   questionNum:'999',
                   accuracy:'99%',
                   collageId:'1',
                   majorId:'1',
                   classId:'3',

               },{

                   
                   stuID:'123',
                   name:'710260712',
                   grade:'18级',
                   questionNum:'999',
                   accuracy:'99%',
                   collageId:'1',
                   majorId:'2',
                   classId:'1',

               },{

                   stuID:'123',
                   name:'710260712',
                   grade:'18级',
                   questionNum:'999',
                   accuracy:'99%',
                   collageId:'2',
                   majorId:'1',
                   classId:'1',

               },
               {

                   
                   stuID:'123',
                   name:'710260712',
                   grade:'18级',
                   questionNum:'999',
                   accuracy:'99%',
               },{

                   
                   stuID:'123',
                   name:'710260712',
                   grade:'18级',
                   questionNum:'999',
                   accuracy:'99%',
               },
               {

                   
                   stuID:'123',
                   name:'710260712',
                   grade:'18级',
                   questionNum:'999',
                   accuracy:'99%',
               },
           ],
           myRank:176,
           totalPage:5
       },
   }),

}
